<?php 
	namespace app\wechat\controller;

	use app\admin\controller\Base as parentBase;
	use think\Db;
	use think\Session;

	class Config extends parentBase {
		/**
		 * 定义当前操作表名
		 * @var string
		 **/
		public $table = "SysConfig";
		public function index() {
			if (request()->isPost()) {
				$param = input('param.');
				foreach ($param as $key => $val) {
					sysconf($key, $val);
				}
				
				$this->success('数据修改成功！', '');
			}
			
			return $this->fetch();
		}
	}



 ?>